﻿using System.ComponentModel.DataAnnotations;

namespace Admin.NET.Application;

    /// <summary>
    /// 车型基础输入参数
    /// </summary>
    public class car_carBaseInput
    {
        /// <summary>
        /// 车型名
        /// </summary>
        public virtual string carname { get; set; }
        
        /// <summary>
        /// 父级
        /// </summary>
        public virtual long pid { get; set; }
        
    }

    /// <summary>
    /// 车型分页查询输入参数
    /// </summary>
    public class car_carInput : BasePageInput
    {
        /// <summary>
        /// 车型名
        /// </summary>
        public string carname { get; set; }

    /// <summary>
    /// 父级
    /// </summary>
    public long pid { get; set; } = -1;
        
    }

    /// <summary>
    /// 车型增加输入参数
    /// </summary>
    public class Addcar_carInput : car_carBaseInput
    {
    }

    /// <summary>
    /// 车型删除输入参数
    /// </summary>
    public class Deletecar_carInput : BaseIdInput
    {
    }

    /// <summary>
    /// 车型更新输入参数
    /// </summary>
    public class Updatecar_carInput : car_carBaseInput
    {
        /// <summary>
        /// Id
        /// </summary>
        [Required(ErrorMessage = "Id不能为空")]
        public long Id { get; set; }
        
    }

    /// <summary>
    /// 车型主键查询输入参数
    /// </summary>
    public class QueryByIdcar_carInput : Deletecar_carInput
    {

    }
